package com.zxc.shortlink.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
* @author zxc_user
* @date 2022/3/23 22:47
* @version 1.0
* @description 短链接映射枚举类
**/
public enum LinkMappingStateEnum {

    ENABLE(0, "生效中"),
    DISABLE(1, "禁用"),

    ;

    LinkMappingStateEnum(Integer val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    @EnumValue
    private Integer val;

    private final String desc;

    public Integer getVal() {
        return val;
    }
}
